#include <time.h>
#include <stdio.h>
#include <unistd.h>

int main()
{
  int i;
  Staticx char tms[15];
  struct tm *ptm;
  time_t tim;
  *tms = '\0';
  tim = time(0);
  time_t the_time;

  for(i = 1; i <= 10; i++){
    the_time = time((time_t *)0);
    printf("%d  the time is %ld\n", i, the_time);
    sleep(2);
  }
  return 0;
}
